#ifndef SERVER_PROCESSOR_H_
#define SERVER_PROCESSOR_H_

#include "rpc/rpc_process.h"

namespace urpc {
class ServerProcessor : public RpcProcessor {
  public:
    explicit ServerProcessor(HandlerMap* handler_map)
        : handler_map_(handler_map) {
    }
    ~ServerProcessor() {
    }

    void HandleRead(Connection* conn, Buffer* buf);

  private:
    HandlerMap* handler_map_;

    DISALLOW_COPY_AND_ASSIGN(ServerProcessor);
};
}

#endif
